package apiUtils.apis.account;

import android.content.Context;

import org.json.JSONException;

import apiUtils.params.Params;
import constant.ApiConstants;

/**
 * Created by Joe on 2017/7/20 0020 10:30.
 */

public class SMSSendAPI extends BaseAccountAPI {
    private static final String tag = "SMSSendAPI";
    private static final String url = ApiConstants.DOMAIN_NAME + "sendCode";

    public SMSSendAPI(Context context) {
        super(context);
    }

    public void smsSendAccount(String subType, String accountId, final BaseAccountAPI.Listener listener) {
        mSubType = subType;
        mUserAccount = accountId;
        post(tag, url, listener);
    }

    @Override
    protected Params initParams() throws JSONException {
        initAccountParams();
        mApiParams.put("accountId", mUserAccount);
        return mApiParams;
    }
}
